package com.yunxin.core.infra.persistence.mapper.channel;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunxin.core.infra.persistence.entity.channel.ChannelProhibitProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@DS("core")
public interface ChannelProhibitProductMapper {
    /**
     * 删除
     * @param id
     */
    void deleteByChannelId(@Param("id") Long id);

    /**
     * 添加
     *

     * @param product
     */
    void insert(@Param("product") ChannelProhibitProduct product);

    List<ChannelProhibitProduct> listChannelProhibitProduct(@Param("channelId") Long channelId);

    List<ChannelProhibitProduct> getChannelProhibitProductByCode(@Param("channelCode") String channelCode);
}
